#ifndef _COMMON_H_
#define _COMMON_H_


void stk_init(uint8_t * stkloc, int size);

uint8_t stk_crc(uint8_t *stkloc, int size);


#define STK_INIT(size) \
	uint8_t my_stk[size]; \
        stk_init(my_stk, size); \
	P2OUT = stk_crc(my_stk, size);  


typedef void  (* indirect_fn_t)  (uint8_t tst);

void f4(uint8_t x, indirect_fn_t findirect);

void f9(uint8_t x, indirect_fn_t findirect);

void f11(uint8_t x);


#define TST_RECURSION 0

#if TST_RECURSION
void fn_recursive1(uint8_t x);
void fn_recursive2(uint8_t x);
void fn_recursive3(uint8_t x);
#endif

#endif
